summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-02-04 12:33:36 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-02-04 12:33:36 +0100
commit5839159141b9cfb8d66f0baa456bff1bec6cce44 (patch)
tree37460231c28a9bad4f4000c339621fc1c191f9cd /Makefile
parentza zunanje delo (diff)
downloadov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar.gz
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar.bz2
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar.lz
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar.xz
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.tar.zst
ov-5839159141b9cfb8d66f0baa456bff1bec6cce44.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1d860b2..437de56 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
DESTDIR=/
SRCFILE=main.cpp
+BINFILE=ov
O=0
-CFLAGS += -Wextra -Wall -g -O$O -I. -oov -finput-charset=UTF-8 -fextended-identifiers
+CFLAGS += -Wextra -Wall -g -O$O -I. -o$(BINFILE) -finput-charset=UTF-8 -fextended-identifiers
LIBS +=
CC=c++
VGARGS += --leak-check=full --track-origins=yes --verbose --log-file=valgrind-out.txt --suppressions=/usr/lib/i386-linux-gnu/valgrind/default.supp --show-leak-kinds=all --leak-resolution=high
@@ -18,19 +19,19 @@ cc:
install:
mkdir -p $(DESTDIR)/usr/bin/
- cp ov $(DESTDIR)/usr/bin/
+ cp $(BINFILE) $(DESTDIR)/usr/bin/
distclean:
- rm ov -f
+ rm $(BINFILE) -f
clean:
- rm ov -f
+ rm $(BINFILE) -f
prepare:
- apt install build-essential -y
+ apt install build-essential libmuparserx-dev -y
-# developing is to be done on i386. for example the default suppression file is hardcoded for i386 here:
+# developing is to be done on i386.
# developing is to be done on bullseye.
valgrind:
- G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) ./ov
+ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind $(VGARGS) ./$(BINFILE)